<div class="acsgp_body_menu"><a href="/admin-acsgp-groups">{elang m=admin s=acsgp t=List}</a></div>
<div class="acsgp_body_menu acsgp_body_menu_selected">{elang m=admin s=acsgp t=Details}: <span style="font-weight: normal;">{$group_name.name}</span></div>
<div style="clear:both; padding-bottom:7px;"></div>

<br />
<table cellpadding="0" cellspacing="0" class="admin_table">
 <tr>
  <th>{elang m=admin s=acsgp t='Access'}</th>
  <th>{elang m=admin s=acsgp t=Actions}</th>
 </tr>
 
 {if count($names) > count($group)}
 <tr>
 <form method="post">
  <td>
   <select style="width:99%; height:23px;" name="access_to_gp">
	{foreach from=$names key=access item=item}
	 {if !$group[$access]}
	  <option value="{$access}">{$item.name}</option>
	 {/if}
	{/foreach}
   </select>
  </td>
  <td><input type="submit" value="{elang m=admin s=acsgp t='Add access'}" /></td>
 </form>
 </tr>
 {/if}
 
 
 {foreach from=$group key=key item=item}
  {cycle values=" class='admin_table_td_zebra'," assign="zebra" print=false}
  <tr>
   <td{$zebra}>{$names[$key].name}</td>
   <td{$zebra}>
   		<a href="?about={$smarty.get.about}&delete_from_grp={$names[$key].access}" onClick='return confirm("{elang m=admin s=acsgp t='Delete access from group?'}")'><img src="/open/images/buttons/delete2.png" border=0 title="{elang m=admin s=acsgp t='Delete item'}" /></a>
   </td>
  </tr>
 {/foreach}
 
</table>
